package com.bjut.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class Employee extends User implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//private int id;
	private String empid;	
	private String name="";
	private int sex=0;
	private Date birthday=null;
	private Date beginWorkDay=null;
	private String address="";
	private String email="";
	private String nationality="";
	private String birthplace="";
	private String msn="";
	private boolean isMarry=false;
	private String tel="";
	private Position position;
	private DetailInfo detailInfo;
	private Department department;
	private Set<RPDetail> rpDetails  =  new HashSet<RPDetail>();
	
	public Employee(){
		
	}
	/*public Employee(String username, String password, int type, String mark) {
		super(username, password, type, mark);
	}*/
	public String getEmpid() {
		return empid;
	}
	public void setEmpid(String empid) {
		this.empid = empid;
	}
	public Date getBeginWorkDay() {
		return beginWorkDay;
	}

	public void setBeginWorkDay(Date beginWorkDay) {
		this.beginWorkDay = beginWorkDay;
	}

	public void setMarry(boolean isMarry) {
		this.isMarry = isMarry;
	}
	/*public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}*/
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getNationality() {
		return nationality;
	}
	public void setNationality(String nationality) {
		this.nationality = nationality;
	}
	public String getBirthplace() {
		return birthplace;
	}
	public void setBirthplace(String birthplace) {
		this.birthplace = birthplace;
	}
	public String getMsn() {
		return msn;
	}
	public void setMsn(String msn) {
		this.msn = msn;
	}
	public boolean getIsMarry() {
		return isMarry;
	}
	public void setIsMarry(boolean isMarry) {
		this.isMarry = isMarry;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public Position getPosition() {
		return position;
	}
	public void setPosition(Position position) {
		this.position = position;
	}
	public DetailInfo getDetailInfo() {
		return detailInfo;
	}
	public void setDetailInfo(DetailInfo detailInfo) {
		this.detailInfo = detailInfo;
	}
	public void setDepartment(Department department) {
		this.department = department;
	}
	public Department getDepartment() {
		return department;
	}
	public void setRpDetails(Set<RPDetail> rpDetails) {
		this.rpDetails = rpDetails;
	}
	public Set<RPDetail> getRpDetails() {
		return rpDetails;
	}
	
}
